# Ernesto Ortiz 

def hunt_choices(round_number, current_food, current_reputation, m,  player_reputations):

    number_of_players=len(player_reputations)
    total_rep=0
    for x in range(number_of_players):
        total_rep=total_rep+player_reputations[x]
    hunt_decisions=['h' for x in range(number_of_players)] #default to hunt

    if(total_rep/number_of_players>=m/number_of_players):
        chance_of_extra=1
    else:
        chance_of_extra=0

    for x in range(number_of_players):
        if(round_number<5):#allows me to set up a reputation of hunting from the start
            break
        if(current_reputation<.25):#tries to keep me with a not too low rep
            if(current_reputation<player_reputations[x]):
                hunt_decisions[x]='h'
            else:
                hunt_decisions[x]='s'
        elif(chance_of_extra==1):#more cooperative if greater chance of bonus
            if(player_reputaions[x]>.4):
                hunt_decisions[x]='h'
            else:
                hunt_deisions[x]='s'
        else:
            if(player_reputations[x]>.6):
                hunt_decisions[x]='h'
            else:
                hunt_decisions[x]='s'

    return hunt_decisions;

def hunt_outcomes(food_earnings):
    pass

def round_end(award, m, number_hunters):
    pass
